<?php
use yii\widgets\LinkPager;
?>
<?php
foreach ($models as $key => $value) {?>
 	<tr>
 		<td><?php echo $value['name']?></td>
 		<td><?php echo $value['price']?></td>
 		<td><?php echo $value['stock']?></td>
 	</tr>
    
<?php }?>

<?php

echo LinkPager::widget([
    'pagination' => $pages,
]);

?>

